import myaxios from "../MyAxios";
import BASEURL from "../BaseUrl";

const TCHYURL = BASEURL.TCHYURL;
const driverApi = {
  // 司机-认证详情
  getWaitAuditDriverDetails(params) {
    let url = TCHYURL + "/supplier/driver/getDetails";
    return myaxios.get(url, params);
  },
  // 司机列表
  getAuditedDriverList(params) {
    let url = TCHYURL + "/supplier/driver/list";
    return myaxios.get(url, params);
  },
  // 车队列表
  getFleetList(params) {
    let url = TCHYURL + "/supplier/fleet/list";
    return myaxios.get(url, params);
  },
  // 车辆列表
  getvehicleList(params) {
    let url = TCHYURL + "/supplier/driver/bingVehicleList";
    return myaxios.get(url, params);
  },
  // 邀请司机
  addDriver(params) {
    let url = TCHYURL + "/supplier/driver/inviteDriver";
    return myaxios.post(url, params);
  },
  // 绑定车辆
  ChooseVehicle(params) {
    let url = TCHYURL + "/supplier/driver/chooseVehicle";
    return myaxios.get(url, params);
  },
 
};
export default driverApi;
